<!DOCTYPE html>
<html>
<head>
    <title>保养预警</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






        </head>
<body class="ren-body">
<div id="rrapp" v-cloak>
    <div class="list-header-content-box">
        <!--<div class="list-header-card display">-->
            <!--<div-->
                    <!--v-for="(item, index) in statusCar"-->
                    <!--:key="index"-->
                    <!--class="flex" :class="index === statusCarIndex ? 'active' : ''" @click="changeStatus(item,index)" style="cursor:pointer;">-->
                <!--<div class="list-header-card-text">{{item.name}}</div>-->
                <!--<div class="list-header-card-number">{{item.carNum}}</div>-->
            <!--</div>-->
        <!--</div>-->
        <div class="list-header-card display">
            <div id="field5" class="flex" style="cursor:pointer;" @click="changeStatus(5)">
                <div class="list-header-card-text">全部</div>
                <div class="list-header-card-number">{{total.field5}}</div>
            </div>
            <div id="field1" class="flex" style="cursor:pointer;" @click="changeStatus(1)">
                <div class="list-header-card-text">超过{{dateConfig1}}天以上未保养</div>
                <div class="list-header-card-number">{{total.field1}}</div>
            </div>
            <div id="field2" class="flex" style="cursor:pointer;" @click="changeStatus(2)">
                <div class="list-header-card-text">超过{{dateConfig2}}天未保养</div>
                <div class="list-header-card-number">{{total.field2}}</div>
            </div>
            <div id="field3" class="flex" style="cursor:pointer;" @click="changeStatus(3)">
                <div class="list-header-card-text">{{dateConfig3}}天以内待保养</div>
                <div class="list-header-card-number">{{total.field3}}</div>
            </div>
            <div id="field4" class="flex" style="cursor:pointer;" @click="changeStatus(4)">
                <div class="list-header-card-text">未保养</div>
                <div class="list-header-card-number">{{total.field4}}</div>
            </div>
        </div>
    </div>


    <div class="list-search-title-box">
        <form class="layui-form" style="box-shadow: 0 0 20px #eee;padding-right: 15px;">
            <section class="jxc-section" style="display: flex;align-items: flex-start;white-space: nowrap;">
                <div class="card layui-row" style="flex: 1">
                    <div class="layui-form-item">
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">车牌号/车架号</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input searchVal"
                                       v-model="q.carNo"
                                       placeholder="请输入车牌号/车架号"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">所属公司</label>
                            <div class="layui-input-inline">
                                <input type="text" readonly class="layui-input searchVal" v-model="q.company"
                                       placeholder="请选择所属公司" @click="deptTree"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">品牌/车系/车型:</label>
                            <div class="layui-input-inline">
                                <input type="text" id="carBrandSeriesModel" class="layui-input" placeholder="请选择品牌/车系/车型" readonly="readonly"/>
                            </div>
                        </div>

                        <section v-show="isFilter">
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">车辆状态</label>
                                <div class="layui-input-inline">
                                    <select name="carStatus" lay-filter="carStatus" v-model="q.carStatus">
                                        <option value="">全部</option>
                                        <option value=1>整备中</option>
                                        <option value=2>备发车</option>
                                        <option value=3>预定中</option>
                                        <option value=4>用车中</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">车辆所属仓库:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.depotName"
                                           @click="chooseWarehouse"   placeholder="请选择车辆所属仓库"/>
                                    <input type="hidden" class="layui-input searchVal" v-model="q.depotId" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">车辆所有人:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.carOwner"
                                           placeholder="请输入车辆所有人"/>
                                </div>
                            </div>
                        </section>
                    </div>
                </div>
                <div style="display: flex;align-items: center;">
                    <a class="layui-btn search-btn" @click="query">查询</a>
                    <a class="layui-btn reset-btn" @click="reset">重置</a>
                    <div @click="bindFilter" style="margin-left: 10px;cursor: pointer;user-select: none;">
                        <span style="color: #2251C5;">高级筛选</span>
                        <img src="../../../statics/images/高级筛选@2x.png" style="width:14px">
                    </div>
                </div>
            </section>
        </form>
    </div>
    <div class="list-search-title-box">
        <form class="layui-form">
            <div style="display:flex;width: 100%;">
                <div class="layui-form-item layui-row" style="width: 100%;">
                    <div class="list-search-form-button" style="width: 100%;">
                        <a class="layui-btn search-btn" @click="exports">导出</a>
                        <a class="layui-btn reset-btn" @click="batchNotice" >批量通知</a>
                    </div>
                </div>
            </div>
        </form>
    </div>


    <div class="list-table-content-box">
        <table class="layui-hide" id="grid" lay-filter="grid"></table>
    </div>
</div>

<script type="text/html" id="barTpl">
    <a class="layui-grid-btn-xs" lay-event="detail" more-btn-index="{{d.LAY_INDEX-1}}">查看</a>
    <mperm v-m-perm="['maintenancewarn:renewal']">
    {{#if(d.maintenanceStatus != 1){}}
    <a class="layui-grid-btn-xs" lay-event="renewal" more-btn-index="{{d.LAY_INDEX-1}}">续保</a>
    {{#}}}
    </mperm>
    <mperm v-m-perm="['maintenancewarn:notice']">
    <a class="layui-grid-btn-xs" lay-event="notice" more-btn-index="{{d.LAY_INDEX-1}}">通知</a>
    </mperm>
</script>
<script type="text/html" id="checkbd">
    <input type="checkbox" name="siam_one" title="" lay-filter='siam_one' lay-skin="primary" data-contractId = "{{ d.carId }}" data-id = "{{ d.carId}}" {{ d.LAY_CHECKED == 1 ? 'checked' : '' }}>
</script>
<script src="../../statics/js/modules/warn/maintenancewarn.js?_${.now?long}"></script>
</body>
</html>